package formation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-04-10
 * Time: 18:16
 */

public class Client {
    public static void main(String[] args) {

        //该普通房子
        CommonHouse commonHouse = new CommonHouse();
        //准备建造房子的指挥者
        HouseDirector houseDirector = new HouseDirector(commonHouse);
        //完成盖房子 返回产品
        House house = houseDirector.constructHouse();

        System.out.println("-----------------------");

        HighBuilder highBuilder = new HighBuilder();
        houseDirector.setHouseBuilder(highBuilder);
        houseDirector.constructHouse();


    }
}
